package com.ctyon.watchmanager.bean;

import com.ctyon.common.util.DataUtil;

/**
 * CreateDate：19-7-20 on 上午10:26
 * Describe:
 * Coder: lee
 */
public class StepBean {

    private String step0;
    private String step1;
    private String step2;

    public String getStep0() {
        return step0;
    }

    public void setStep0(String step0) {
        this.step0 = step0;
    }

    public String getStep1() {
        return step1;
    }

    public void setStep1(String step1) {
        this.step1 = step1;
    }

    public String getStep2() {
        return step2;
    }

    public void setStep2(String step2) {
        this.step2 = step2;
    }

    public StepBean setStep(String[] step){
        this.step0 = (DataUtil.isEmptyAnd(step[0]) || step[0].equals("00*00-00*00") || step[0].equals("null"))?"":step[0].replace("*", ":");
        this.step1 = (DataUtil.isEmptyAnd(step[1]) || step[1].equals("00*00-00*00") || step[1].equals("null"))?"":step[1].replace("*", ":");
        this.step2 = (DataUtil.isEmptyAnd(step[2]) || step[2].equals("00*00-00*00") || step[2].equals("null"))?"":step[2].replace("*", ":");
        return this;
    }

}
